/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package libsvm;

/**
 *
 * @author kiakaku
 */
public class ID_Tfdif implements Comparable<ID_Tfdif> {

    public int id;
    public double  tfdif;

    public ID_Tfdif(int id, double tfdif) {
        this.id = id;
        this.tfdif = tfdif;
    }

    public boolean equals(ID_Tfdif anathor) {
        return this.id == anathor.id;
    }

    @Override
    public int compareTo(ID_Tfdif o) {
        if (this.id > o.id) {
            return 1;
        } else if (this.id == o.id) {
            return 0;
        }
        return -1;
    }
}
